

var reportType = {
    0: "ComprehensiveReport",    
    1: "SummaryComprehensiveReport",
    2: "CoreReport",
    3: "SummaryCoreReport",
    4: "ControversyReport",
    5: "GlobalCompactComplianceReport",
    6: "TearSheetReport",
    7: "CorporateGovernanceCompanyReport",
    3: "RiskRatingsReport",
    3: "SummaryRiskRatingsReport",

}

var collection = db.getSiblingDB("ClientPlatform").MostActiveReport
collection.find({ReportType: { $type: 16 }}).forEach(function(item){

    item.ReportType = reportType[item.ReportType];

    collection.save(item);
})

